package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class TableCommitAction {

    private int beginIndex;
    private int endIndex;
    private boolean preserve;
    private boolean delete;

    public TableCommitAction(int beginIndex,
                             int endIndex,
                             boolean preserve,
                             boolean delete) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.preserve = preserve;
        this.delete = delete;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isPreserve() {
        return preserve;
    }

    public boolean isDelete() {
        return delete;
    }

}
